package com.drako.tdgdx.logic;

public class PlayField {
	public boolean[][] field;
	

	public PlayField(int x, int y) {
		field = new boolean[x][y];
		for (int i = 0; i < field.length; i++) {
			for (int j = 0; j < field[i].length; j++) {
				field[i][j]=true;
			}
		}
	}


	
	
	
	
//	public void generateWayPoints() {
//		/*
//		 * IDEA go towards target, in our case go right (x positive) j+1 check
//		 * every next field if 0 if not check field i+1  j save as
//		 * Waypoint(j-1|i) then check field j+1 if free save j as Waypoint (j|i)
//		 * start at go towards target
//		 * 
//		 * at the end call generate path and choose the pass generated from the
//		 * waypoint list move enemies along that path
//		 */
//		int i=0;
//		int a=0;
//		while (true) {
//			for (int j = a; j < field[i].length; j++) {
//				if(field[i][j]> 0 ){
//					if(checkTilesAround(i,j-1)){
//						a = j-1;
//						i++;
//						createWaypoint(i,a);
//						
//					}
//				}
//			}
//			
//		}
//	}
//	
//	
//
//	private void createWaypoint(int i, int a) {
//		// TODO Auto-generated method stub
//		
//	}
//
//	private boolean checkTilesAround(int i, int j) {
//		// true = go up
//		// false = go down
//		return false;
//	}
}
